// Copyright © 2020 The Things Network Foundation, The Things Industries B.V.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

.wrapper
  display: flex
  flex-direction: column
  height: 100%
  min-height: 100vh

.flex-wrapper
  display: flex
  flex: 1
  position: relative

.full-view-error
  box-sizing: border-box
  width: 100%
  min-height: 30rem
  padding-bottom: $ls.s
  padding-left: 4rem
  padding-right: 4rem
  +media-query-min($bp.sm)
    padding-top: 20vh
  +media-query($bp.sm)
    padding-top: $header-height-mobile + $ls.m

  &-header
    +media-query($bp.sm)
      font-size: $fs.l

  &-sub
    display: block
    margin-bottom: $ls.s

  summary
    color: var(--c-text-neutral-light)

  pre
    width: 100%
    box-sizing: border-box
    background-color: var(--c-bg-neutral-semilight)
    color: var(--c-text-neutral-heavy)
    font-size: $fs.s
    overflow-y: auto
    padding: $cs.s
    max-height: 26rem
    color: var(--c-text-neutral-heavy)

.error-actions
  display: flex
  align-items: center
  flex-wrap: wrap
  margin-bottom: $cs.m
  margin-top: $cs.m

  & > span
    color: var(--c-text-neutral-light)

.action-button
  margin-right: $cs.m
  padding-left: $cs.xs

.detail-colophon
  color: var(--c-text-neutral-light)
  span
    display: block
